﻿namespace Haimen.Func2;

internal class WorkshopFunc2(
    AppEnvResolver envResolver,
    MonthResultMaker monthResult,
    YearResultMaker yearResult) : WorkshopFuncMain {

  public void Run(EntryArgResult args) {
    AppEnvPath env = _envResolver.Resolve(args);

    //TODO: 生成月报表
    MonthResultInfo month = _monthResult.Make(env);

    //TODO: 把月表叠加到年汇总表上
    _yearResult.Make(env, month);
  }

  readonly AppEnvResolver _envResolver = envResolver;

  readonly MonthResultMaker _monthResult = monthResult;
  readonly YearResultMaker _yearResult = yearResult;
}
